package legoproject.TestStubs;

import legoproject.*;

public class EscapeButtonTestStub {

    private SimpleButton panel;

    public EscapeButtonTestStub(String name, PCReporter reporter){
        panel = new SimpleButton("EscapeButtonTestStub " + name, true);
        panel.setOpaque(true);
        reporter.addComponent(panel);
    }
    public boolean isPressed() {
        return panel.isDown();
    }
}

